package cn.akwangl.design.pattern.behavioral.command.v2;

import javax.swing.*;

/**
 * 接收者：馄饨厨师
 *
 * @author youyongkun
 * @date 2021/12/7 16:45
 */
public class HunTunChef extends JFrame {
    private static final long serialVersionUID = 1L;
    JLabel l = new JLabel();
    HunTunChef() {
        super("煮馄饨");
        l.setIcon(new ImageIcon(HunTunChef.class.getResource("/command/HunTun.jpg")));
        this.add(l);
        this.setLocation(350, 50);
        this.pack();
        this.setResizable(false);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    public void cooking() {
        this.setVisible(true);
    }
}